ARCH = arm64
CROSS_COMPILE = aarch64-none-linux-gnu-
obj-m += ADC_dev.o
KERNEL_PATH=/home/zsc/E2000D/E2000D_Class/kernel/local/phytium-linux-kernel

all:
	make -C $(KERNEL_PATH) M=$(PWD) modules
	$(CROSS_COMPILE)gcc -lpthread -o main main.c motor.c rgb.c steer.c ultrasonic.c
	cp *.ko main /home/zsc/E2000D/E2000D_Class/nfsroot/

clean:
	make -C $(KERNEL_PATH) M=$(PWD) clean
